import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/dist/vite'
import {ElementPlusResolver} from 'unplugin-vue-components/dist/resolvers'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [
        vue(),
        Components({//添加elementplus按需导入
            resolvers: [ElementPlusResolver()]
        })
    ],
    server: {
        port: 9999
    }
})
